remove last item in array javascript

join shbcf.ru